package org.tc.shopmall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.tc.product.entity.Commoditys;
import org.tc.product.entity.Pictures;

import java.util.Date;

public class Orders {

    private Integer id;

    private Integer storeid;

    private Integer userid;

    private Long pricetotal;

    private Integer state;

    private String receiver;

    private String phone;

    private Pictures pic;

    private Commoditys com;

    public Pictures getPic() {
        return pic;
    }

    public void setPic(Pictures pic) {
        this.pic = pic;
    }

    public Commoditys getCom() {
        return com;
    }

    public void setCom(Commoditys com) {
        this.com = com;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date receivetime;

    private String region;

    private String adress;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createordertime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endtime;

    private Integer orderId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date deliverytime;

    private String deliverytype;

    private String paytype;

    private String leaveword;

    private Long deliveryprice;

    private Integer salesclerkid;

    //订单详情属性
    private Integer commodityid;

    private Long number;

    private Long unitprice;

    private Integer orderid;

    private Integer membernumber;

    //商品表属性
    private String name;
    //get set


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMembernumber() {
        return membernumber;
    }

    public void setMembernumber(Integer membernumber) {
        this.membernumber = membernumber;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getUnitprice() {
        return unitprice;
    }

    public void setUnitprice(Long unitprice) {
        this.unitprice = unitprice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStoreid() {
        return storeid;
    }

    public void setStoreid(Integer storeid) {
        this.storeid = storeid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Long getPricetotal() {
        return pricetotal;
    }

    public void setPricetotal(Long pricetotal) {
        this.pricetotal = pricetotal;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getReceivetime() {
        return receivetime;
    }

    public void setReceivetime(Date receivetime) {
        this.receivetime = receivetime;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public Date getCreateordertime() {
        return createordertime;
    }

    public void setCreateordertime(Date createordertime) {
        this.createordertime = createordertime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getDeliverytime() {
        return deliverytime;
    }

    public void setDeliverytime(Date deliverytime) {
        this.deliverytime = deliverytime;
    }

    public String getDeliverytype() {
        return deliverytype;
    }

    public void setDeliverytype(String deliverytype) {
        this.deliverytype = deliverytype;
    }

    public String getPaytype() {
        return paytype;
    }

    public void setPaytype(String paytype) {
        this.paytype = paytype;
    }

    public String getLeaveword() {
        return leaveword;
    }

    public void setLeaveword(String leaveword) {
        this.leaveword = leaveword;
    }

    public Long getDeliveryprice() {
        return deliveryprice;
    }

    public void setDeliveryprice(Long deliveryprice) {
        this.deliveryprice = deliveryprice;
    }

    public Integer getSalesclerkid() {
        return salesclerkid;
    }

    public void setSalesclerkid(Integer salesclerkid) {
        this.salesclerkid = salesclerkid;
    }

}
